--[[1游戏服务]]----------------------------------------------------------- class---------------------------------------------------------local Service = class("Service")function Service:ctor(id, rid, rtype)    g.desk_id = id --桌子id    g.tid = id    g.rid = tonumber(rid) --房间id    g.rtype = tonumber(rtype) --房间类型 1比赛场    g.user_file_name = "games.snooker.user"    g.room_cfg_name = "room_cfg_snooker"    self:register()endfunction Service:register()    g.register('start', handler(self, self.onStart))    g.register('close', handler(self, self.onClose))endfunction Service:onStart(data)    g.chandler = new("games.snmatch.handler")    return trueendfunction Service:onClose()    return trueendreturn Service